﻿using System.ComponentModel;
using System.Windows.Controls;
using Oxage.Drivers;
using Oxage.Models;
using Oxage.Services;

namespace Oxage.Views
{
	public partial class MainView : UserControl
	{
		#region Members
		internal BackgroundWorker worker;
		#endregion

		#region Constructor
		public MainView()
		{
			InitializeComponent();
			ViewModel = App.ViewModel;
			ViewModel.View = this;
			TextEditorService.Editor = this.Editor;
		}
		#endregion

		#region Properties
		public MainViewModel ViewModel
		{
			get
			{
				return this.DataContext as MainViewModel;
			}
			set
			{
				this.DataContext = value;
			}
		}
		#endregion
	}
}
